#include "adapter.h"
#include <iostream>

using namespace adapter;

void MallardDuck::Quack()
{
    std::cout << "Quack" << std::endl;
}

void MallardDuck::Fly()
{
    std::cout << "I'm flying" << std::endl;
}

void WildTurkey::Gobble()
{
    std::cout << "Gobble gobble" << std::endl;
}

void WildTurkey::Fly()
{
    std::cout << "I'm flying a short distance" << std::endl;
}

TurkeyAdapter::TurkeyAdapter(Turkey* t)
{
    this->m_turkey = t;
}

void TurkeyAdapter::Quack()
{
    this->m_turkey->Gobble();
}

void TurkeyAdapter::Fly()
{
    this->m_turkey->Fly();
}
